package huanzhao.erp.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

@TableName(value = "clear_record")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ClearRecord implements Serializable {

    @TableField(value = "clear_id")
    private Long clearId;

    @TableField(value = "phone_id")
    private Long phoneId;

    /**
     * 是否找到
     */
    @TableField(value = "found")
    private Boolean found;

    /**
     * 找到时间或确认丢失的时间
     */
    @TableField(value = "finish_time")
    private Date finishTime;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public ClearRecord(Long clearId, Long phoneId) {
        this.clearId = clearId;
        this.phoneId = phoneId;
    }
}